angular.module('todoApp', ['ngRoute']).config(['$routeProvider',
  function config($routeProvider) {
    $routeProvider.
      when('/home', {
        templateUrl: './views/todoList.view.html',
        controller: 'todoController'
      }).
      when('/archived', {
        templateUrl: './views/archivedList.view.html',
        controller: 'archivedController'
      }).
      otherwise('/home');
  }
]);